import service from "./http"

const GOODS_LIST = 'goods/list'
const GOODS_DETAIL = 'goods/query'
const GOODS_ADD = 'goods/add'


const api = {
    queryOrder(params) {
        return this.post(GOODS_LIST, params)

    },

    queryDetail(params) {
        return this.post(GOODS_DETAIL, params)
    },

    addOrder(params) {
        return this.post(GOODS_ADD, params)
    },

    post(url, params) {
        return service({
            url: url,
            method: 'POST',
            data: params
        })
    }
}

export default api;
